import { request } from "../request"
import qs from "qs"

// 上传图片
// type: 1 为logo  2为头像
export function uploadImg (type, datas) {
  let formData = new FormData()
  formData.append('img', datas)
  return request({
    url: 'api/image/'+type,
    method: 'POST',
    data: formData
  })
}
